package com.lottery.ruok.lottrey.retrofitModule.request;

import com.lottery.ruok.lottrey.retrofitModule.BaseModel;
import com.lottery.ruok.lottrey.retrofitModule.response.SendContactsResponse;

import org.json.JSONArray;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by ASUS on 2017/11/9.
 */

public interface SendContactsRequest {
    @POST("contacts")
    @FormUrlEncoded
    Observable<BaseModel<SendContactsResponse>> getResult(@Query("token") String token,
                                                          @Field("contacts") JSONArray data,
                                                          @Query("mobile_phone_number") String mobile_phone);
}
